//
//  SMMNavigationController.m
//  RentCar
//
//  Created by sunmingming on 14-4-1.
//  Copyright (c) 2014年 Ebola. All rights reserved.
//

#import "SMMNavigationController.h"
#import "tooles.h"
#import <FlatUIKit.h>
#import <Colours.h>
#import "AppDelegate.h"

@interface SMMNavigationController ()

@end

@implementation SMMNavigationController

-(id)initWithRootViewController:(UIViewController *)rootViewController
{
    self = [super initWithRootViewController:rootViewController];
    if (self) {
        // Custom initialization
        self.navigationBar.barStyle = UIBarStyleBlack;
        [self.navigationBar configureFlatNavigationBarWithColor:TitleColor];
        [UIBarButtonItem configureFlatButtonsWithColor:[UIColor black25PercentColor]
                                      highlightedColor:TitleColor
                                          cornerRadius:5.0];
        if([tooles DeviceVersion]>=7.0f){
            rootViewController.edgesForExtendedLayout = UIRectEdgeNone;
            self.navigationBar.tintColor = [UIColor whiteColor];
        }
        else
        {
            self.navigationBar.tintColor = [UIColor whiteColor];
        }
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
